The Dreamweaver JavaScript API > Assets panel functions > dreamweaver.assetPalette.getSelectedItems() |
![]() ![]() ![]() |
dreamweaver.assetPalette.getSelectedItems()
Availability
Dreamweaver 4.0
Description
Returns an array of the selected items in the Assets panel, either in the site list or Favorites list.
Arguments
None.
Returns
An array of three strings for each selected item:
![]() |
name is the name/file name or nickname as seen in the panel. |
![]() |
value is the full file path, full URL, or color value depending on the item selected. |
![]() |
type is either "folder" or one of the categories: "templates" , "library" , "images" , "movies" , "shockwave" , "flash" , "scripts" , "colors" , or "urls" . |
Note: If nothing is selected in the Assets panel, this function returns an array of one empty string.
Example
If "URLs" is the category, and a folder "MyFolderName" and a URL "MyFavoriteURL" are both selected in the Favorites list, the function will return:
items[0] = "MyFolderName" items[1] = " " items[2] = "folder" items[3] = "MyFavoriteURL" items[4] = "http://www.MyFavoriteURL.com" items[5] = "urls"
![]() ![]() ![]() |